package abstract1;

public class Rectangle extends  Shape {
    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    private int width;
    private int height;

    public Rectangle(int width, int height) {
        this.height = height;
        this.width = width;
    }



    public String toString() {
        return "Rectangle(width:" + width + ", height:" + height + ")";
    }
    public void draw(){
        for (int i = 0; i <height ; i++) {
            for (int j = 0; j <width ; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

}
